#pragma once

class CCustomListCtrl :
	public CWindowImpl<CCustomListCtrl, CListViewCtrl>
{
public:
	CCustomListCtrl(void);
	~CCustomListCtrl(void);

	BEGIN_MSG_MAP(CCustomListCtrl)
		// MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBkgnd)
		MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
		DEFAULT_REFLECTION_HANDLER()
	END_MSG_MAP()

	LRESULT OnEraseBkgnd(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
	{
		return 0;
	}

	LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
	{
		m_hWnd = NULL;
		return 0;
	}
};
